package com.zdlyh.domain.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class MenuTreeVo {
    /**
     * 菜单ID
     */
    private Long id;

    /**
     * 父菜单ID
     */
    private Long parentId;

    private String label;

    private List<MenuTreeVo> children;

    public MenuTreeVo(Long id, String menuName, Long parentId, Object children) {
        this.id=id;
        this.label=menuName;
        this.parentId=parentId;
    }
}
